﻿using System;

namespace ConsoleApp1
{
    class Yyds
    {
        string nnreA;
        string nnreB;
        string nnreC;
        string nnreD;
        static string teacherA = "猪八戒";

        public string NnreA
        {
            get { return this.nnreA; }
            set { this.nnreA = value; }
        }
        public string NnreB {
            get { return this.nnreB; }
            set { this.nnreB = value; }
        }
        public string NnreC {
            get { return this.nnreC; }
            set { this.nnreC = value; }
        }
        public string NnreD {
            get { return this.nnreD; }
            set { this.nnreD = value; }
        }
        public  void Test()
        {
            Console.WriteLine("我的名字是{0}，俺老师叫{1}",this.nnreA,teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nnreB, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nnreC, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nnreD, teacherA);
            Test1();
            Console.WriteLine("--------------------------------------------------------------");
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nnreA, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nnreB, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nnreC, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nnreD, teacherA);
        }
        void Test1()
        {
            teacherA = "嫦娥";
        }
        
        
    }
}
